#define _CRT_SECURE_NO_WARNINGS 1

#include "SList.h"

int main()
{
	SLTNode* plist = NULL;
	SLTPushFront(&plist, 10);
	SLTPushFront(&plist, 5);
	SLTPushFront(&plist, 1);
	SLTPrint(plist);

	SLTPushBack(&plist, 6);
	SLTPushBack(&plist, 4);
	SLTPushBack(&plist, 3);
	SLTPrint(plist);

	SLTPopBack(&plist);
	SLTPrint(plist);
	SLTPopFront(&plist);
	SLTPrint(plist);

	SLTNode* find = SLTFind(&plist,4);
	SLTInsert(&plist, find, 100);
	SLTPrint(plist);
	SLTInsertAftet(find, 200);
	SLTPrint(plist);

	SLTErasetAftet(find);
	SLTErase(&plist, find);
	SLTPrint(plist);

	SLTDestory(&plist);

	return 0;
}